package com.itmaster.domain.model;

import java.io.Serializable;

/**
 * @author Fernando Perez
 */
public class User implements Serializable {

	private String username;
	private String password;

	/**
	 * @param username
	 * @param password
	 */
	public User(String username, String password) {
		this.username = username;
		this.password = password;
	}

	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param password
	 * @return
	 */
	public boolean validatePassword(String password) {
		return this.password.equals(password);
	}
}
